<?php
/*
 * 项目总配置文件，非管理员请勿随意改动
 */
$commonConfig = array(

    /*
     * 本地测试模式开关；请确保服务器端本项配置值为false
     */
    '#LOCAL_TEST_MODEL' =>true,

    //设置session的过期时间,以及session生效的域名
    'SESSION_OPTIONS' => array(
        'expire' => 3600
    ),
    //加盐的长度
    'SALT_LENGTH' => 6,
    //运行数据库字段大小写混合
    'DB_PARAMS' => array(\PDO::ATTR_CASE => \PDO::CASE_NATURAL),
);

$dbConfig = $commonConfig['#LOCAL_TEST_MODEL']? require_once('db_config_dev_test.php') : require_once('db_config.php');
//$testConfig = $commonConfig['#LOCAL_TEST_MODEL']? include ('test_config.php') : array();
$testConfig = include ('test_config.php');

$wechatConfig = include ('wechat_config.php');
$qiniuUpload = include ('qiniu_upload_config.php');

return array_merge($commonConfig, $dbConfig, $testConfig, $wechatConfig, $qiniuUpload);
